#include <myheader.h>
/* Usage:  */
int main(int argc, char *argv[]){                                  
    ARGS_CHECK(argc,2);
    int fd=open(argv[1],O_RDWR);
    ERROR_CHECK(fd,-1,"open");

    char buf[100]={0};
    read(fd,buf,sizeof(buf));
    printf("%s\n",buf);
    memset(buf,0,sizeof(buf));
    
    ssize_t sret = read(0,buf,sizeof(buf));

    write(fd,buf,sret);
    close(fd);
    return 0;
}

